#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.service.convert;

import com.google.common.base.Converter;
import ${package}.pojo.Demo;
import ${package}.pojo.vo.DemoOutputVo;
import org.springframework.beans.BeanUtils;
import org.springframework.lang.NonNull;

/**
 * @author qingchang.tang
 * @date 2020/7/24 18:34
 */
public class DemoOutputVoConverter extends Converter<Demo, DemoOutputVo> {

    @Override
    protected DemoOutputVo doForward(@NonNull Demo demo) {
        DemoOutputVo vo = new DemoOutputVo();
        BeanUtils.copyProperties(demo, vo);
        return vo;
    }

    @Override
    protected Demo doBackward(@NonNull DemoOutputVo demoOutputVo) {
        throw new UnsupportedOperationException("do backward unsupported");
    }
}
